<?php
//include file
include("include/session.php");
require_once('db_conn/conn_db.php');
require_once('header.php');
require_once('calendar/calendar/classes/tc_calendar.php');
?>
<script language="javascript" src="calendar/calendar/calendar.js"></script>
<SCRIPT LANGUAGE="JavaScript">
function fjs_formval()
	{
	error = 0;
	if (window.document.form.nama.value == "")
	{
		alert("ATTENTION \n\nField Nama must be filled.");
		window.document.form.nama.focus();
		error = 1;
	}
	else
	if (window.document.form.alamat.value == "")
	{
		alert("ATTENTION \n\nField Alamat must be filled.");
		window.document.form.alama.focus();
		error = 1;
	}
	else
	if (window.document.form.no_tlp.value == "")
	{
		alert("ATTENTION \n\nField No Telp must be filled.");
		window.document.form.no_tlp.focus();
		error = 1;
	}
	else
	if (window.document.form.username.value == "")
	{
		alert("ATTENTION \n\nField User Name must be filled.");
		window.document.form.username.focus();
		error = 1;
	}
	
	else
	if (window.document.form.pass.value == "")
	{
		alert("ATTENTION \n\nField Password must be filled.");
		window.document.form.password.focus();
		error = 1;
	}
	
	if (error == 0)
		window.document.form.submit();
	else
	return false;
}</SCRIPT>
</HEAD>
<BODY>
<FORM ACTION=save_klien.php method="post" name="form" id="form">
<table align="left" cellpadding="1" cellspacing="1" border="1">
    <input type=hidden name=status value="1" size=20>
	<tr>
		<td class="pageName" colspan="2">Form Klien</td>
	</tr>
	<tr> 
      <td>User Name</td>
	  <td>
	  <input type=text name=username size=20>
	  </td>
    </tr>
	<tr> 
      <td>Password</td>
	  <td>
	  <input type=password name=pass size=25>
	  </td>
    </tr>
	<tr> 
      <td>Nama Lengkap</td>
      <td>
		<input type=text name=nama size=35>
 	  </td>
    </tr>
    <tr> 
      <td>Alamat Lengkap</td>
      <td>
	  <textarea name=alamat rows=3 col=40></textarea>	  
	  </td>
    </tr>
	 <tr> 
      <td>No. Telp </td>
      <td><input type=text name=no_tlp size="20"></td>
     </tr>
	 <tr>
	 <td><input type=submit value=Simpan onClick="javascript:return fjs_formval()"> <input type=reset value=Reset></td>
    </tr>
</table>
</FORM>
</BODY>
</HTML>
